package com.zqh.myfmmall.rowbeans.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * <p>
 * 商品评价 
 * </p>
 *
 * @author chrimer
 * @since 2022-01-20
 */
@Data
public class ProductComments {

    private static final long serialVersionUID = 1L;

    private String commId;

    private String productId;

    private String skuProps;

    private String orderItemId;

    private String userId;

    private Integer isAnonymous;

    private Integer commType;

    private Integer commLevel;

    private String commContent;

    private String commImgs;

    private Integer replyStatus;

    private String replyContent;

//    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
//    @JsonSerialize(using = LocalDateTimeSerializer.class)
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

//    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
//    @JsonSerialize(using = LocalDateTimeSerializer.class)
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime replyTime;

    private Integer isShow;


}
